<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            

            <div class="card">
                <div class="card-header"><?php echo e(__('Edit')); ?></div>

                <div class="card-body">
                    <form method="POST" action="<?php echo e(route('computers.update',['computer'=>$computer->id])); ?>">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>
                        <div class="form-group row">
                            <label for="name" class="col-md-4 col-form-label text-md-right"><?php echo e(__('Name')); ?></label>

                            <div class="col-md-6">
                                <input id="name" type="text" disabled class="form-control<?php echo e($errors->has('name') ? ' is-invalid' : ''); ?>" name="name" value="<?php echo e($computer->name); ?>" required autofocus>
                            </div>
                        </div>

    					<div class="form-group row">
                            <label for="mac" class="col-md-4 col-form-label text-md-right">mac地址</label>

                            <div class="col-md-6">
                                <input id="mac" type="text" disabled class="form-control<?php echo e($errors->has('mac') ? ' is-invalid' : ''); ?>" name="mac" value="<?php echo e($computer->mac); ?>" required autofocus>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="people" class="col-md-4 col-form-label text-md-right">用户名</label>

                            <div class="col-md-6">
                                <input id="people" type="text" class="form-control<?php echo e($errors->has('people') ? ' is-invalid' : ''); ?>" name="people" value="<?php echo e($computer->people); ?>" autofocus>

                                <?php if($errors->has('people')): ?>
                                    <span class="invalid-feedback">
                                        <strong><?php echo e($errors->first('people')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="expiredDate" class="col-md-4 col-form-label text-md-right">到期时间</label>

                            <div class="col-md-6">
                                <input id="expiredDate" type="text" class="form-control<?php echo e($errors->has('expiredDate') ? ' is-invalid' : ''); ?>" name="expiredDate" value="<?php echo e($computer->expiredDate); ?>" autofocus>

                                <?php if($errors->has('expiredDate')): ?>
                                    <span class="invalid-feedback">
                                        <strong><?php echo e($errors->first('expiredDate')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="remote" class="col-md-4 col-form-label text-md-right">远程连接</label>

                            <div class="col-md-6">
                                <input id="remote" type="text" class="form-control<?php echo e($errors->has('remote') ? ' is-invalid' : ''); ?>" name="remote" value="<?php echo e($computer->remote); ?>" autofocus>

                                <?php if($errors->has('remote')): ?>
                                    <span class="invalid-feedback">
                                        <strong><?php echo e($errors->first('remote')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="remote_pass" class="col-md-4 col-form-label text-md-right">远程密码</label>

                            <div class="col-md-6">
                                <input id="remote_pass" type="text" class="form-control<?php echo e($errors->has('remote_pass') ? ' is-invalid' : ''); ?>" name="remote_pass" value="<?php echo e($computer->remote_pass); ?>" autofocus>

                                <?php if($errors->has('remote_pass')): ?>
                                    <span class="invalid-feedback">
                                        <strong><?php echo e($errors->first('remote_pass')); ?></strong>
                                    </span>
                                <?php endif; ?>
                            </div>
                        </div>

                        

                        <div class="form-group row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    <?php echo e(__('Edit')); ?>

                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>




        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>